package com.lams.action.system;

import com.lams.action.SubAction;
import com.lams.service.system.IRoleFacade;
import com.lams.util.ResultEntity;
import com.opensymphony.xwork2.Action;

public class RoleAction extends SubAction{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2602133944647863396L;
	private IRoleFacade rf;
	private String ROLE_ID;
	private String [] FUNCTIONS;
	public RoleAction() {
	}

	public String operateRole() {
		ResultEntity result = rf.operateRole(this.getStart(),this.getLimit());
		this.setResult(ResultEntity.decode(result));
		return Action.SUCCESS;
	}

	public String newRole() {
		return Action.SUCCESS;
	}

	public String findSingleRole() {
		return Action.SUCCESS;
	}

	public String modifyRole() {
		return Action.SUCCESS;
	}


	public String removeRole() {
		return Action.SUCCESS;
	}

	public String authorization() {

		return Action.SUCCESS;
	}


	public String changeRf() {
		ResultEntity result = rf.changeRf(ROLE_ID, FUNCTIONS);
		this.setResult(ResultEntity.decode(result));
		return Action.SUCCESS;
	}

	public String getROLE_ID() {
		return ROLE_ID;
	}

	public void setROLE_ID(String rOLE_ID) {
		ROLE_ID = rOLE_ID;
	}

	public String[] getFUNCTIONS() {
		return FUNCTIONS;
	}

	public void setFUNCTIONS(String[] fUNCTIONS) {
		FUNCTIONS = fUNCTIONS;
	}

	public IRoleFacade getRf() {
		return rf;
	}

	public void setRf(IRoleFacade rf) {
		this.rf = rf;
	}
	
}
